package uestc.lj.gulishop.cart.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import uestc.lj.common.utils.R;

/**
 * @Author:Crazlee
 * @Date:2021/6/13
 */
@FeignClient("gulishop-product")
public interface ProductFeignService {
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skusaleattrvalue/getskusaleattrvalues/{skuId}")
    public R getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skuinfo/{skuId}/price")
    public R getNewPrice(@PathVariable("skuId") Long skuId);

}
